﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="VaraUppgifter.aspx.cs"
    Inherits="StockholmsStad.Web.UI.VaraUppgifter.VaraUppgifter" MasterPageFile="~/templates/Site.Master" %>

<%@ Register Src="~/Controls/Registrering/Registration1_Persons.ascx" TagName="RegistrationPersons"
    TagPrefix="StockholmsStad" %>
<%@ Register Src="~/Controls/Registrering/Registration2_Contact.ascx" TagName="RegistrationContact"
    TagPrefix="StockholmsStad" %>
<%@ Register Src="~/Controls/Registrering/Registration3_Summary.ascx" TagName="RegistrationSummary"
    TagPrefix="StockholmsStad" %>
    <%@ Register Src="~/Controls/StepControl.ascx" TagName="StepControl"
    TagPrefix="StockholmsStad" %>
<asp:Content ContentPlaceHolderID="mainContentPlaceHolder" ID="contentRegistrering"
    runat="server">
    <div id="content">
        <asp:MultiView ID="MultiView1" ActiveViewIndex="0" runat="server">
            <asp:View ID="View1" runat="server">
                <div class="registration-questions">
                    För mer information om hur ni skall fylla i uppgifterna och om Personuppgiftslagen (PUL),<br />
                    se fliken
                    <asp:HyperLink ID="HyperLink1" runat="server" Text="Frågor och svar »" NavigateUrl="~/FragorOchSvar.aspx" />
                </div>
                <asp:Panel ID="Panel1" runat="Server" DefaultButton="btnChange">
                    <StockholmsStad:RegistrationSummary ID="registrationSummary" runat="server" />
                    <div class="right">
                        <asp:Button ID="btnChange" runat="Server" Text="Ändra" CssClass="button" CausesValidation="false"
                            OnClick="btnChange_Click" />
                    </div>
                </asp:Panel>
            </asp:View>
            <asp:View ID="View2" runat="server">
                <StockholmsStad:StepControl ID="StepControlView2" runat="server" />
                
                <asp:Panel ID="Panel2" runat="Server" DefaultButton="btnSubmitPersonUpdate">
                    <asp:UpdatePanel ID="uplContact" runat="server" UpdateMode="Conditional">
                        <ContentTemplate>
                            <StockholmsStad:RegistrationPersons ID="registrationPersons" runat="server" />
                        </ContentTemplate>
                    </asp:UpdatePanel>
                    <div class="right">
                        <asp:Button ID="btnSubmitPersonUpdate" runat="Server" Text="Nästa >" CssClass="right-element"
                            OnClick="btnSubmitPersonUpdate_Click" />
                    </div>
                </asp:Panel>
            </asp:View>
            <asp:View ID="View3" runat="server">
                <StockholmsStad:StepControl ID="StepControlView3" runat="server" />
                <asp:Panel ID="Panel3" runat="Server" DefaultButton="btnSubmitUpdate">
                    <StockholmsStad:RegistrationContact ID="registrationContact" runat="server" />
                    <div class="right">
                        <asp:Button ID="btnCancelContactUpdate" runat="server" Text="Avbryt" CausesValidation="false"
                            OnClick="btnCancelContactUpdate_Click" />
                        <asp:Button ID="btnPrevContactUpdate" runat="Server" Text="Tillbaka" CausesValidation="false"
                            CommandName="PrevView" />
                        <asp:Button CssClass="right-element" ID="btnSubmitUpdate" runat="Server" Text="Spara"
                            OnClick="btnSubmitUpdate_Click" />
                    </div>
                </asp:Panel>
            </asp:View>
        </asp:MultiView>
    </div>
</asp:Content>
